package com.project.bean;

import java.time.LocalDate;

/**
 * @Author(王思翰)
 * @Description(类的描述)学生实体类
 * @Date(创建时间) 2021/7/10 16:34
 */public class StudentBean {
     /**
      * 学生Id
      */
     private Integer studentId;

     /**
      * 学生姓名
      */
     private String name;

     /**
      * 生日
      */
     private LocalDate birthday;

     /**
      * 学生电话
      */
     private String phone;

     /**
      * 所属学校对象
      */
     private SchoolBean schoolBean;

     /**
      * 所属班级对象
      */
     private ClassBean classBean;

     public StudentBean() {
     }

     public StudentBean(String name, LocalDate birthday, String phone, SchoolBean schoolBean, ClassBean classBean) {
          this.name = name;
          this.birthday = birthday;
          this.phone = phone;
          this.schoolBean = schoolBean;
          this.classBean = classBean;
     }

     public Integer getStudentId() {
          return studentId;
     }

     public void setStudentId(Integer studentId) {
          this.studentId = studentId;
     }

     public String getName() {
          return name;
     }

     public void setName(String name) {
          this.name = name;
     }

     public LocalDate getBirthday() {
          return birthday;
     }

     public void setBirthday(LocalDate birthday) {
          this.birthday = birthday;
     }

     public String getPhone() {
          return phone;
     }

     public void setPhone(String phone) {
          this.phone = phone;
     }

     public SchoolBean getSchoolBean() {
          return schoolBean;
     }

     public void setSchoolBean(SchoolBean schoolBean) {
          this.schoolBean = schoolBean;
     }

     public ClassBean getClassBean() {
          return classBean;
     }

     public void setClassBean(ClassBean classBean) {
          this.classBean = classBean;
     }

     @Override
     public String toString() {
          return "StudentBean{" +
                  "studentId=" + studentId +
                  ", name='" + name + '\'' +
                  ", birthday=" + birthday +
                  ", phone='" + phone + '\'' +
                  ", schoolBean=" + schoolBean +
                  ", classBean=" + classBean +
                  '}';
     }
}
